package com.jvm.io.bio;

import com.util.util.ExecutorServiceUtil;

public class Test {


    public static void main(String[] args) {
        //运行客户端
        ExecutorServiceUtil.executorService.submit(()->{
            while(true){
                //随机产生算术表达式
                String expression = "客户端发的消息！！！！！！！！！！";
                Client.send(expression);
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
    }

}
